package jp.example.sinya.fragment.manage.fragment;

import jp.example.sinya.fragment.manage.constants.FragmentConstants;
import jp.example.sinya.fragment.manage.utils.FragmentUtils;

/**
 * @author Sinya
 * @editor
 * @date 23/4/2018 6:21 PM
 * @describe
 */
public class BlankFragment1 extends BaseFragment {


    @Override
    protected void initUI() {
        btnBackLast.append(" is back to MainFragment");
        btnBackMain.append(" is back to MainFragment");
        btnOpenNext.append(" is open to Fragment2");
    }

    @Override
    protected void openNextFragment() {
        if (onChangeFragmentListener != null) {
            onChangeFragmentListener.openNextFragment(FragmentUtils.getFragment(onChangeFragmentListener, null, FragmentConstants.FRAGMENT_2), false);
        }
    }
}
